<!DOCTYPE html>
<html>

    <head>
        <meta charset="utf-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
        <title>样机单品分析</title>
        <link rel="stylesheet" href="css/reset.css" />
        <link rel="stylesheet" href="css/platform.css" />
        <link rel="stylesheet" href="css/table.css" />
        <link rel="stylesheet" href="js/magicsuggest-min.css" />
        <link rel="stylesheet" href="css/property.css" />
    </head>

    <body>
        <div class="header">
            <div class="u-title">样机单品分析</div>
        </div>
        <div class="saleexpt-manage" ms-controller="mainController">
            <div class="u-multiform search-param">
            	<div class="column">
                    <div class="cell">
                        <label><span>*</span>大区：</label>
                        <div class="cnt-box">
                            <input id="magicRegion" style="width:250px;" type="text" />
                        </div>
                    </div>
                    <div class="cell">
                        <label>分公司：</label>
                        <div class="cnt-box">
                            <input id="magicBranch" style="width:250px;" type="text" />
                        </div>
                    </div>
                </div>
                <div class="column">
                    <div class="cell">
                        <label>门店编码：</label>
                        <div class="cnt-box">
                            <input id="magicStore" style="width:250px;" type="text" />
                        </div>
                    </div>
                    <div class="cell">
                        <label>品类：</label>
                        <div class="cnt-box">
                            <input type="hidden" ms-duplex="categoryCode" />
                            <input id="magicCategory" style="width:250px;" type="text" />
                        </div>
                    </div>
               </div>
               <div class="column">
                    <div class="cell">
                        <label>品牌：</label>
                        <div class="cnt-box">
                            <input type="hidden" ms-duplex="brandCode" />
                            <input id="magicBrand" style="width:250px;" type="text" />
                        </div>
                    </div>
                    <div class="cell">
                        <label>商品系列名：</label>
                        <div class="cnt-box">
                            <input id="comRangeName" class="u-ipt" ms-duplex="comRangeName" />
                        </div>
                    </div>
                </div>
               <div class="column">
                    <div class="cell">
                        <label>商品组名：</label>
                        <div class="cnt-box">
                            <input id="comGroupName" class="u-ipt" ms-duplex="comGroupName" />
                        </div>
                    </div>
                    <div class="cell">
                        <label>商品编码：</label>
                        <div class="cnt-box">
                            <input class="u-ipt" ms-duplex="commCode" />
                        </div>
                    </div>
                </div>
                 <div class="column">
<!--                      <div class="cell"> -->
<!--                         <label>门店类型：</label> -->
<!--                         <select ms-duplex="storeType"> -->
<!--                             <option value="">全部</option> -->
<!--                             <option value="1">门店</option> -->
<!--                             <option value="0">服务站</option> -->
<!--                         </select> -->
<!--                     </div>  -->
                    <div class="cell">
                        <label>查询时间：</label>
                        <div class="cnt-box">
                            <select ms-duplex="month">
                                <option ms-repeat-mm="lastmonths" >{{mm.saleMonth}}</option>
                            </select>
                        </div>
                        <button class="u-btn small" ms-click="search" ms-class="dis:!regionCode">查询</button>
                    </div>
                </div>
            </div>
            <div class="export"><!-- 
                <span ms-if="dataLen!=0">大区：{{curRegion}}</span>
                <span ms-if="dataLen!=0">公司：{{curBranch}}</span>
                <span ms-if="dataLen!=0">门店：{{curStore}}</span>
                <span ms-if="dataLen!=0">门店类型：{{curStoreType==1?"门店":"服务站"}}</span> -->
                <button class="u-btn small" ms-class="dis:dataLen==0" ms-click="exportPop()">导出</button>
            </div>
            <div id="exptTable" ms-controller="exptTable"></div>
            <script type="avalon" id="tableSaleExpt">
                <div class="tableWrapper">
                    <table class="table">
                        <thead>
                            <tr>
								<th>大区名称</th>
								<th>分公司名称</th>
								<th>门店编码</th>
								<th>门店名称</th>
                                <th>品类</th>
                                <th>品牌</th>
                                <th>商品编码</th>
                                <th>商品名称</th>
								<th>商品组</th>
								<th>所属簇系列</th>
                                <th>样机数量</th>
                                <th>销量</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr ms-repeat-row="sources">
								<td>{{row.regionName}}</td>
								<td>{{row.branchName}}</td>
								<td>{{row.storeCode}}</td>
								<td>{{row.storeName}}</td>
                                <td>{{row.categoryName | truncate(8,"...")}}</td>
                                <td>{{row.brandName | truncate(8,"...")}}</td>
                                <td>{{row.commCode}}</td>
                                <td>{{row.commName | truncate(23,"...")}}</td>
								<td>{{row.comGroupName | truncate(23,"...")}}</td>
								<td>{{row.comRangeName | truncate(23,"...")}}</td>
                                <td>{{row.modelCount}}</td>
                                <td>{{row.saleCount}}</td>
                            </tr>
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="12">
                                    <div class="pager">
                                        <div class="first-page" ms-click="firstpage" ms-class={{firstpagestyle}}>首页</div>
                                        <div class="pre-page" ms-click="prepage" ms-class={{prepagestyle}}>上一页</div>
                                        <div class="current-page">
                                            第<input class="current-page-num" type="text" ms-duplex="currentpage" ms-input="jumppage" />页
                                            <span class="totalpage">共 {{totalpage}} 页</span>
                                        </div>
                                        <div class="next-page" ms-click="nextpage" ms-class={{nextpagestyle}}>下一页</div>
                                        <div class="last-page" ms-click="lastpage" ms-class={{lastpagestyle}}>尾页</div>
                                        <div class="messageinfo">{{startrow}}-{{endrow}} 共{{total}}条</div>
                                    </div>
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                </div>
            </script>
        </div>
        <!--弹框区域-->
        <div ms-controller="popController">
            <div class="u-popup export-pop" id="popup_cnt">
                <div class="bg"></div>
                <div class="asTable-box">
                    <div class="asTable">
                        <div class="asTableCell">
                            <div class="asCell dialog">
                                <a href="javascript:;" class="close btn-close">×</a>
                                <p class="title">选择导出</p>
                                <div class="container">
                                    <div ms-repeat-number="exportCountList" class="e-number" ms-class="sel:$index==0" ms-click="selCount()">
                                        <img src="css/images/export-icon.png">
                                        <p>{{number}}</p>
                                        <div class="sel-icon"></div>
                                    </div>
                                </div>
                                <div class="btn-box">
                                    <button class="u-btn" ms-click="exportList()">确定</button>
                                    <button class="u-btn gray btn-close">取消</button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="loadData"></div>
        <script src="js/jquery.min.js"></script>
        <script src="js/avalon.shim.sn.js"></script>
        <script src="js/swift-ui-table-1.1.js"></script>
        <script src="js/magicsuggest-min.js"></script>
        <script src="js/platform.js"></script>
        <script src="js/DataInterface/DataInterface.js"></script>
        <script src="js/prototype-validity.js"></script>
    </body>
</html>